<template>
    <j-modal :title="title" :width="width" :visible="visible" switchFullscreen @ok="handleCancel" fullscreen
        :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
        <CheckInBaseForm :model="model" disabled />
        <slot />
    </j-modal>
</template>

<script>
import CheckInBaseForm from './CheckInBaseForm'
export default {
    name: 'CheckInBaseModal',
    components: {
        CheckInBaseForm
    },
    data() {
        return {
            title: '',
            width: 800,
            visible: false,
            disableSubmit: true,
            model: {},
        }
    },
    methods: {
        show(record) {
            this.model = record;
            this.visible = true;
        },
        handleCancel() {
            this.$emit('closeModal')
            this.visible = false
        }
    }
}
</script>